const Mock =require("mockjs") 
const data=Mock.mock({
    code:200,
    "list|26-34":[
                {
                    "id":"@id",
                    "name":"@ctitle(4)",
                    "type":'产品分类',
                    'classifyIcon':"@image(60x60,@color)",
                    'num|100-600':1,
                    'shopSort|1':[10,1,0,2],
                    'stateFlag|1':[false,true],
                }
            ]
})

module.exports=[
    {
        url:'/vue-element-admin/classify/list',
        type:'post',
        response:(res)=>{
            const {pageIndex,pageSize}=res.body
            const list=data.list.slice((pageIndex-1)*pageSize,pageIndex*pageSize)
            return {
                code:200,
                data:list,
                total:data.list.length,
            }
        }
    }
]

